package fight

import (
	"io"
	"net"
)

// 网络协议接口
type NetProtocoler interface {
	Listen(string) (net.Listener, error)
	Accept(net.Listener) (net.Conn, error)
	Dial(string) (net.Conn, error)
}

type ReadWriter interface {
	Read(io.Reader) ([]byte, error)
	Write(io.Writer, []byte) (int, error)
}
